import request from '@/utils/request'

// 查询回库单列表
export function listReturnStockBill(query) {
  return request({
    url: '/inOutStock/returnStockBill/list',
    method: 'get',
    params: query
  })
}

// 查询回库单详细
export function getReturnStockBill(id) {
  return request({
    url: '/inOutStock/returnStockBill/' + id,
    method: 'get'
  })
}

// 新增回库单
export function addReturnStockBill(data) {
  return request({
    url: '/inOutStock/returnStockBill',
    method: 'post',
    data: data
  })
}

// 修改回库单
export function updateReturnStockBill(data) {
  return request({
    url: '/inOutStock/returnStockBill',
    method: 'put',
    data: data
  })
}

// 删除回库单
export function delReturnStockBill(id) {
  return request({
    url: '/inOutStock/returnStockBill/' + id,
    method: 'delete'
  })
}
